.editorContainer {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: calc(100vh - 180px);
}

.editorContainer :global(.ql-container) {
  height: calc(100% - 42px);
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.editorContainer :global(.ql-editor) {
  padding: 20px;
}

.editorContainer :global(.ql-toolbar) {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #fafafa;
  border-bottom: 1px solid #e8e8e8;
}

.editorContainer :global(.ql-editor.ql-blank::before) {
  color: #999;
  font-style: normal;
}

.customToolbar {
  display: flex;
  padding: 8px;
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.quillContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.markdownEditor {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0 0 8px 8px;
  height: calc(100% - 42px);
  overflow: hidden;
}

.markdownTextarea {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
  color: #2c3e50;
  border: none;
  resize: none;
  outline: none;
  background-color: #fafafa;
  white-space: pre-wrap;
  word-wrap: break-word;
  tab-size: 2;
}

.markdownTextarea:focus {
  background-color: #fff;
  box-shadow: inset 0 0 0 1px #e8e8e8;
}

.markdownTextarea::placeholder {
  color: #999;
  font-style: italic;
}

.markdownToolbar {
  padding: 8px;
  background-color: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.markdownBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.markdownBtn:hover {
  color: #1890ff;
  border-color: #1890ff;
}

.markdownBtn.active {
  color: #fff;
  background-color: #1890ff;
  border-color: #1890ff;
}